package com.itheima.springbootwebtlias.mapper;


import com.github.pagehelper.Page;
import com.itheima.springbootwebtlias.pojo.LogQueryParam;
import com.itheima.springbootwebtlias.pojo.OperateLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface LogMapper {

    //5.5 日志列表查询 分页查询
    @Select("select o.*,e.name as operateEmpName from operate_log o left join emp e on o.operate_emp_id = e.id")
    Page<OperateLog> queryLog(LogQueryParam logQueryParam);
}
